package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceConfig implements java.io.Serializable {

  public WorkspaceConfig() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private String configItem;

  /** Attribute configItem Be Seted Falg */
  private boolean configItemSetted = false;

  /** Attribute configItem is Null Falg */
  private boolean configItemNull = false;

  /**
   * Get configItem
   *
   * @return String
   */
  public final String getConfigItem() {

    if (isConfigItemNull()) {
      return null;
    } else {
      return StringUtils.trim(configItem);
    }
  }

  /**
   * Set configItem
   *
   * @param String
   */
  public final void setConfigItem(String configItem) {

    this.configItem = StringUtils.trim(configItem);

    this.configItemSetted = true;

    this.setConfigItemNull(this.configItem == null);
  }

  /**
   * Get configItem Has Been Setted
   *
   * @return boolean
   */
  public final boolean isConfigItemSetted() {
    return this.configItemSetted;
  }

  /** Set configItem Null */
  public final void setConfigItemNull() {

    this.configItemNull = true;
  }

  public final void setConfigItemNull(boolean aNullFlag) {

    this.configItemNull = aNullFlag;
  }

  public final boolean isConfigItemNull() {

    return this.configItemNull;
  }

  private String description;

  /** Attribute description Be Seted Falg */
  private boolean descriptionSetted = false;

  /** Attribute description is Null Falg */
  private boolean descriptionNull = false;

  /**
   * Get description
   *
   * @return String
   */
  public final String getDescription() {

    if (isDescriptionNull()) {
      return null;
    } else {
      return StringUtils.trim(description);
    }
  }

  /**
   * Set description
   *
   * @param String
   */
  public final void setDescription(String description) {

    this.description = StringUtils.trim(description);

    this.descriptionSetted = true;

    this.setDescriptionNull(this.description == null);
  }

  /**
   * Get description Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDescriptionSetted() {
    return this.descriptionSetted;
  }

  /** Set description Null */
  public final void setDescriptionNull() {

    this.descriptionNull = true;
  }

  public final void setDescriptionNull(boolean aNullFlag) {

    this.descriptionNull = aNullFlag;
  }

  public final boolean isDescriptionNull() {

    return this.descriptionNull;
  }

  private long parentConfigId;

  /** Attribute parentConfigId Be Seted Falg */
  private boolean parentConfigIdSetted = false;

  /** Attribute parentConfigId is Null Falg */
  private boolean parentConfigIdNull = false;

  /**
   * Get parentConfigId
   *
   * @return long
   */
  public final long getParentConfigId() {

    return parentConfigId;
  }

  /**
   * Set parentConfigId
   *
   * @param long
   */
  public final void setParentConfigId(long parentConfigId) {

    this.parentConfigId = parentConfigId;

    this.parentConfigIdSetted = true;

    this.setParentConfigIdNull(false);
  }

  /**
   * Get parentConfigId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isParentConfigIdSetted() {
    return this.parentConfigIdSetted;
  }

  /** Set parentConfigId Null */
  public final void setParentConfigIdNull() {

    this.parentConfigIdNull = true;
  }

  public final void setParentConfigIdNull(boolean aNullFlag) {

    this.parentConfigIdNull = aNullFlag;
  }

  public final boolean isParentConfigIdNull() {

    return this.parentConfigIdNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String configForm;

  /** Attribute configForm Be Seted Falg */
  private boolean configFormSetted = false;

  /** Attribute configForm is Null Falg */
  private boolean configFormNull = false;

  /**
   * Get configForm
   *
   * @return String
   */
  public final String getConfigForm() {

    if (isConfigFormNull()) {
      return null;
    } else {
      return StringUtils.trim(configForm);
    }
  }

  /**
   * Set configForm
   *
   * @param String
   */
  public final void setConfigForm(String configForm) {

    this.configForm = StringUtils.trim(configForm);

    this.configFormSetted = true;

    this.setConfigFormNull(this.configForm == null);
  }

  /**
   * Get configForm Has Been Setted
   *
   * @return boolean
   */
  public final boolean isConfigFormSetted() {
    return this.configFormSetted;
  }

  /** Set configForm Null */
  public final void setConfigFormNull() {

    this.configFormNull = true;
  }

  public final void setConfigFormNull(boolean aNullFlag) {

    this.configFormNull = aNullFlag;
  }

  public final boolean isConfigFormNull() {

    return this.configFormNull;
  }

  private String configName;

  /** Attribute configName Be Seted Falg */
  private boolean configNameSetted = false;

  /** Attribute configName is Null Falg */
  private boolean configNameNull = false;

  /**
   * Get configName
   *
   * @return String
   */
  public final String getConfigName() {

    if (isConfigNameNull()) {
      return null;
    } else {
      return StringUtils.trim(configName);
    }
  }

  /**
   * Set configName
   *
   * @param String
   */
  public final void setConfigName(String configName) {

    this.configName = StringUtils.trim(configName);

    this.configNameSetted = true;

    this.setConfigNameNull(this.configName == null);
  }

  /**
   * Get configName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isConfigNameSetted() {
    return this.configNameSetted;
  }

  /** Set configName Null */
  public final void setConfigNameNull() {

    this.configNameNull = true;
  }

  public final void setConfigNameNull(boolean aNullFlag) {

    this.configNameNull = aNullFlag;
  }

  public final boolean isConfigNameNull() {

    return this.configNameNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceConfig) == false) {
      return false;
    }
    WorkspaceConfig other = (WorkspaceConfig) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("configItem=");
    buffer.append(this.configItem);

    buffer.append("description=");
    buffer.append(this.description);

    buffer.append("parentConfigId=");
    buffer.append(this.parentConfigId);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("configName=");
    buffer.append(this.configName);

    buffer.append("configForm=");
    buffer.append(this.configForm);

    buffer.append("]");

    return buffer.toString();
  }
}
